package com.chi.dao;

import java.util.List;

import com.chi.page.Page;
import com.chi.pojo.Advise;


public interface AdviseDao {
//添加数据
	public void saveAd(Advise ad);
//删除数据
	public void deleteAd(Advise ad);
//根据类型查看
	//查找一个部门的信息
		public Advise findById(int id)throws Exception;
		
	public List<Advise> findAll(int pageNo)throws Exception;
	//查找对应的页数
	public Page<Advise> getPage(int pageNo)throws Exception;
	//获得信息总条数
	int getTotalNum()throws Exception;

}
